package org.pplb5.siresto;



import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class DetilRestoran extends Activity {
	
	TextView tv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_detil_restoran);
		
		Button tombolPesanAntar = (Button) findViewById(R.id.tombol_pesanantar);
        Button tombolPaketAcara = (Button) findViewById(R.id.tombol_paketacara);
        Button tombolReservasiTempat = (Button) findViewById(R.id.tombol_reservasitempat);
        tv = (TextView) findViewById(R.id.resto_nama);
        
        tombolPesanAntar.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				Intent daftarMenu = new Intent(getApplicationContext(),DaftarMenu.class);
				//daftarMenu.putExtra(", namaResto);
				startActivity(daftarMenu);
			}        	
        });
        
        tombolPaketAcara.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				Intent paketAcara = new Intent(getApplicationContext(),DaftarPaketAcara.class);
				//daftarMenu.putExtra(", namaResto);
				startActivity(paketAcara);
			}        	
        });		
        
        tombolReservasiTempat.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View arg0) {
				Intent reservasi = new Intent(getApplicationContext(),DaftarMejaPersonal.class);
				//daftarMenu.putExtra(", namaResto);
				startActivity(reservasi);
			}        	
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.detil_restoran, menu);
		return true;
	}

}
